package main

import "fmt"
import "time"

func main() {
	c := make(chan int, 50)

	//c := make(chan int)
	go func() {
		time.Sleep(5 * 1e9)
		x := <-c
		fmt.Println("received", x)
	}()
	fmt.Println("sending", 10)
	c <- 10 //buffer不阻塞
	time.Sleep(5 * 1e6)
	fmt.Println("sent", 10)
}
